home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 41.zip
/
BS1 part 41
/
The Director v1.2.adf
/
library
/
playanim
< prev
Wrap
Text File
|
1988-05-08
|
1KB
|
55 lines
REM IFF ANIM player
REM To use, you must:
REM 1. load the anim first frame
REM 2. make a copy of the image into a second buffer
REM 3. load the anim frame data
REM 4. adjust positioning for overscan if necessary
REM 5. initialize variables:
REM anima = buffer number of first frame
REM animb = buffer number of copy of first frame
REM animdat = buffer number of anim frame data
REM animbuf = animb (non-displayed screen)
REM animdone= 0 (last frame flag)
REM 6. Do a GOSUB 9100 for each frame or a GOSUB 9101 to do
REM a frame without pauseing. animdone will be a 1 at the
REM last frame. You will probably want to set SPEED 1
REM uses line nmbers 9100 and 9101, and all variables mentioned
REM plus animg,animd.
REM example setup:
REM REM load and copy
REM LOAD 1,":anims/tel.anim"
REM LOADANIM 21,":anims/tel.anim"
REM POSITION -1,-1
REM NEW 2,1
REM COPY -1,2
REM REM now initialize variables
REM animbuf = 2
REM animdone=0
REM anima=1
REM animb=2
REM animdat=21
REM speed 1
REM REM ok, now loop
REM 10 GOSUB 9100
REM GOTO 10
rem do next frame in the anim:
9100 pause 1
9101 if animdone
skipanim animdat,animbuf,animg,animd,animdone
endif
anim animdat,animbuf,animg,animd,animdone
display animbuf
animbuf=(anima+animb)-animbuf
animp=1
return